package com.fortune.service.impl;

import com.fortune.dao.PPomissionDao;
import com.fortune.service.PPomissionService;
import com.fortune.vo.pPermission.PMenu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PPomissionServiceImpl implements PPomissionService {
    @Autowired
    private PPomissionDao pPomissionDao;

    /**
     * 查询权限
     * @param positonId
     * @return
     */
    @Override
    public List<String> listPermissions(String positonId) {
        return pPomissionDao.listPermissions(positonId);
    }

    /**
     *
     * @param positionId
     * @return
     */
    @Override
    public List<PMenu> listMenusByPositionId(String positionId) {
        return pPomissionDao.listMenusByPositionId(positionId);
    }
}
